package com.ruoyi.project.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.project.mapper.ReqSheduleMapper;
import com.ruoyi.project.domain.ReqShedule;
import com.ruoyi.project.service.IReqSheduleService;

/**
 * 需求进度Service业务层处理
 * 
 * @author ruoyi
 * @date 2025-04-06
 */
@Service
public class ReqSheduleServiceImpl implements IReqSheduleService 
{
    @Autowired
    private ReqSheduleMapper reqSheduleMapper;

    /**
     * 查询需求进度
     * 
     * @param taskId 需求进度主键
     * @return 需求进度
     */
    @Override
    public ReqShedule selectReqSheduleByTaskId(Long taskId)
    {
        return reqSheduleMapper.selectReqSheduleByTaskId(taskId);
    }

    /**
     * 查询需求进度列表
     * 
     * @param reqShedule 需求进度
     * @return 需求进度
     */
    @Override
    public List<ReqShedule> selectReqSheduleList(ReqShedule reqShedule)
    {
        return reqSheduleMapper.selectReqSheduleList(reqShedule);
    }

    /**
     * 新增需求进度
     * 
     * @param reqShedule 需求进度
     * @return 结果
     */
    @Override
    public int insertReqShedule(ReqShedule reqShedule)
    {
        return reqSheduleMapper.insertReqShedule(reqShedule);
    }

    /**
     * 修改需求进度
     * 
     * @param reqShedule 需求进度
     * @return 结果
     */
    @Override
    public int updateReqShedule(ReqShedule reqShedule)
    {
        return reqSheduleMapper.updateReqShedule(reqShedule);
    }

    /**
     * 批量删除需求进度
     * 
     * @param taskIds 需要删除的需求进度主键
     * @return 结果
     */
    @Override
    public int deleteReqSheduleByTaskIds(Long[] taskIds)
    {
        return reqSheduleMapper.deleteReqSheduleByTaskIds(taskIds);
    }

    /**
     * 删除需求进度信息
     * 
     * @param taskId 需求进度主键
     * @return 结果
     */
    @Override
    public int deleteReqSheduleByTaskId(Long taskId)
    {
        return reqSheduleMapper.deleteReqSheduleByTaskId(taskId);
    }
}
